const shareUtil = require('../../../utils/shareUtil.js');
var e = getApp();

Page({
    data: {
        hostUrl: e.globalData.hostUrl,
        imgUrl: e.globalData.imgUrl,
        levels: [ 
           "pic01.jpg",
           "pic03.jpg", 
           "pic02.jpg", 
           "pic04.jpg", 
           "pic05.jpg", 
           "pic06.jpg", 
           "pic07.jpg",
           "pic08.jpg", 
           "pic09.jpg", 
           "pic10.jpg" ]
    },
    chooseLevel: function(e) {
        var n = e.currentTarget.dataset.level;
        wx.navigateTo({
            url: "../pintugame/game?level=" + n
        });
    },
    onLoad: function(e) {},
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage:shareUtil.shareConfig,
    onShareTimeline:shareUtil.shareConfig,
});